package com.netease.image.video;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import com.netease.framework.ActivityEx;

public class ActivityMovieView extends ActivityEx
{
  private ab a;
  private boolean b;
  private boolean c = false;
  private boolean d = false;
  private boolean e = false;

  public static void a(Context paramContext, String paramString)
  {
    Uri localUri = Uri.parse(paramString);
    Intent localIntent = new Intent();
    localIntent.setClass(paramContext, ActivityMovieView.class);
    localIntent.setData(localUri);
    paramContext.startActivity(localIntent);
  }

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    getWindow().setFlags(1024, 1024);
    setContentView(2130903057);
    k();
    View localView = findViewById(2131558450);
    Intent localIntent = getIntent();
    this.a = new g(this, localView, this, localIntent.getData());
    if (localIntent.hasExtra("android.intent.extra.screenOrientation"))
    {
      int i = localIntent.getIntExtra("android.intent.extra.screenOrientation", -1);
      if (i != getRequestedOrientation())
        setRequestedOrientation(i);
    }
    this.b = localIntent.getBooleanExtra("android.intent.extra.finishOnCompletion", true);
  }

  public void onPause()
  {
    super.onPause();
    this.c = false;
    if (this.e)
    {
      this.a.b();
      this.e = false;
    }
  }

  public void onResume()
  {
    super.onResume();
    this.c = true;
    if ((this.d) && (this.c) && (!this.e))
    {
      this.a.c();
      this.e = true;
    }
  }

  public void onWindowFocusChanged(boolean paramBoolean)
  {
    this.d = paramBoolean;
    if ((this.d) && (this.c) && (!this.e))
    {
      this.a.c();
      this.e = true;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.image.video.ActivityMovieView
 * JD-Core Version:    0.6.0
 */